package com.jiayou.session

import com.jiayou.Protocol
import com.jiayou.authention.AuthenticateHandler
import io.ktor.network.sockets.*
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import java.io.Serializable

/**
@author lishuang
@data   2021-04-26  14:43:58
@info   传递字节类型session实现
 */
class ByteServerSocketSession<T1 : Serializable, T2 : Serializable>(
    override var controller: Boolean = false,
    override var authenticateHandler: AuthenticateHandler<T1, T2>,
    override var authenticateTime: Int = 1000,
    override var messageAnalysis: ((T1, Socket, Int, ByteArray, Protocol<ByteArray, T1, T2>) -> Unit)? = null
) : ServerSocketSession<ByteArray, T1, T2> {
    companion object {
        val logger: Logger = LoggerFactory.getLogger(ByteServerSocketSession::class.java)
    }

}
